#include "app_config.h"
#include "../../middle/serve/memory_mange/memory_mang_conf.h"
#if (TEST_MEMORY_TEST_HEAP3&&FREE_RTOS_HEAP_3)

#include <stdio.h>
#include <stdint.h>
#include "../../middle/serve/memory_mange/FreeRTOS_heap3.h"
#include "c_mem.h"
#include "macro_overload.h"



uint8_t u8_mem[16]={0};
void test()
{
    DEBUG_INFO_PRINT("----TEST memory mange heap3:\n ");
    pt_heap_init();
    uint8_t *ptr = u8_mem;
printf(" start addr \n data:");

    ptr = (uint8_t*)pt_malloc(8);
    c_memset(ptr, 5,8);
    printf(" start addr %#x \n data:",(int)ptr);

     foreach(uint8_t, ptr,item)
    {
        printf("%d ,",*item);
    }
    printf("\n");

    pt_free(ptr);

    ptr = (uint8_t*)pt_malloc(8);
    c_memset(ptr, 5,8);
    printf(" start addr %#x \n data:",(int)ptr);

   
}
EXPORT_Lv6_APP_SINGLE(test,NULL);

#endif